package com.team.ai.service;

import com.team.ai.entity.ResultEntity;
import com.team.ai.mapper.AiListMapper;
import jakarta.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AiListService {
//    @Resource
    @Autowired
    AiListMapper aiListMapper;
    public String selectList(int userId){
        try{
            return ResultEntity.success(aiListMapper.selectList(userId)) ;
        }catch (Exception e){
            e.printStackTrace();

            return  ResultEntity.fail(-10005);
        }
    }
}
